package cn.com.pc.content.domain.view;

import cn.com.pc.content.domain.audit.AuditStatus;
import cn.com.pc.content.domain.Biz;
import cn.com.pc.content.domain.Site;
import cn.com.pc.content.domain.video.Video;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface VideoViewRepository extends MongoRepository<Video, String> {

    Page<VideoView> findAllByReferIdInAndSiteAndBizAndAuditStatusNot(List<String> referIds,Site site, Biz biz, AuditStatus auditStatus, Pageable pageable);

    Page<VideoView> findAllByIdInAndAuditStatusNot(List<String> ids, AuditStatus auditStatus, Pageable pageable);

}
